package com.sjx.boundarycallback.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;
import com.sjx.boundarycallback.R;

public class BundleActivity extends AppCompatActivity {

    private TextView mTvBundle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bundle);
        mTvBundle = findViewById(R.id.tv_bundle);
        String a = getIntent().getStringExtra("a");
        String b = getIntent().getStringExtra("b");
        String c = getIntent().getStringExtra("e");
        mTvBundle.setText(a+b+c);
        mTvBundle.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(getApplicationContext(), PublishActivity.class);
                startActivity(intent);
            }
        });

    }
}